package com.six.backend.utils;

import java.nio.charset.StandardCharsets;

/**
 * @Author: skyler
 * @Date: 2021/12/11 11:02
 */
public class FileUtil {
    public static String genAttachmentFileName(String cnName, String defaultName) {
        try {
            cnName = new String(cnName.getBytes(), StandardCharsets.ISO_8859_1);
        } catch (Exception e) {
            cnName = defaultName;
        }
        return cnName;
    }
}
